package com.bejoy.mapper;

import com.bejoy.domain.dto.TUserDTO;
import com.bejoy.domain.model.TUser;
import com.bejoy.domain.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);


    public List<User> loginUser(TUserDTO userDTO);


    TUser getUserByName(String username);
}